import { actions } from "mirrorx";
export default {
      async getList1(state, data) {
        ajax.get({
          url : '/v2/movie/in_theaters',
          data:''
      })
      .then(function (resp) {
          ajax.get({
              url : '/v2/movie/coming_soon',
              data:''
          })
          .then(function (resp1) {
              actions.app.getList(
                {
                  nowData:resp1.subjects,
                  commingData:resp.subjects
                }
              )
          })
      })
    },
    async getDetail(data , getState){
        ajax.get({
            url:'/v2/movie/search?tag='+ data.tag + '&count=10&start=' + data.start ,
            data:''
        })
            .then((res) => {
                actions.app.GetDetail({
                  detailData:res
                })
            })
    }
}